#include<stdio.h>
struct student
{
	int num;
	float score[3];
};
int main()
{
	struct student s[5];
	float sum = 0;
	int i = 0;
	for (i = 0;i < 5;i++) {
		scanf_s("%d%f%f%f", &s[i].num, &s[i].score[0],&s[i].score[1],&s[i].score[2]);
		sum=s[i].score[0]+s[i].score[1]+s[i].score[2];
        printf("ave=%.3f", sum / 3);
	}
	return 0;
}